/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package datasource;

import java.io.Serializable;
import java.util.Random;

/**
 *
 * @author minaev
 */
public class AirshipSource implements DataSource , Serializable{

    double relError = 0.05;
    Random r = new Random();

    public AirshipSource(double relError) {
        this.relError = relError;
    }
    
    @Override
    public double getData(double param,double param2) {
        return param*(r.nextDouble()*relError-0.5*relError);
    }
    
}
